<div id="content" class="testd"><br>
<h1><?php if($title){ echo $title; } ?></h1><br>
<a href="<?php echo site_url('difficultlevel/add_new');?>">Add new</a>
<div class="wite">
<table id="data_list">
<tr><th>Id</th><th>Group</th><th>Action</th></tr>
<?php
if($result==false){
?>
<tr>
<td colspan="5">
No record found!
</td>
</tr>
<?php

}else{
foreach($result as $row){
?>
<tr>
<td><?php echo $row->did;?></td><td><?php echo $row->level_name;?></td><td><a href="javascript: if(confirm('Bạn có chắc là muốn xóa không? level?')){ window.location='<?php echo site_url('difficultlevel/remove_level/'.$row->did );?>'; }"><img src="<?php echo base_url();?>images/cross.png" title="Remove"></a> <a href="<?php echo site_url('difficultlevel/edit_level/'.$row->did );?>"><img src="<?php echo base_url();?>images/edit.png" title="Edit"></a></td>
</tr>
<?php
}
}
?>


</table>
<br>
<a href="<?php echo site_url('difficultlevel/add_new');?>"><img src="<?php echo base_url();?>images/plus.png" title="Add new"></a>
&nbsp;&nbsp;
<?php
if(($limit-($this->config->item('number_of_rows')))>=0){ $back=$limit-($this->config->item('number_of_rows')); }else{ $back='0'; } ?>

<a href="<?php echo site_url('difficultlevel/index/'.$back);?>">Back</a>
&nbsp;&nbsp;
<?php
 $next=$limit+($this->config->item('number_of_rows'));  ?>

<a href="<?php echo site_url('difficultlevel/index/'.$next);?>">Next</a>
</div>
</div>
